package edu.java.day0719;
import java.util.Scanner;
public class test {
    public static void main(String[] args) {
        Scanner id=new Scanner(System.in);
        int w=id.nextInt();
        firstLine(w);
        System.out.println();
        for(int i=0;i<4;i++){
            switch (i){
                case 0:
                    System.out.print("..o");
                    f(w);break;
                case 1:
                    System.out.print("o.o");
                    f(w);break;
                case 2:
                    System.out.print(".o.");
                    f(w);break;
                case 3:
                    System.out.print("o.o");
            }
        }
        System.out.println();
        for(int i=0;i<4;i++){
            switch (i){
                case 0:
                    System.out.print("ooo");
                    f(w);break;
                case 1:
                    System.out.print("o.o");
                    f(w);break;
                case 2:
                    System.out.print(".o.");
                    f(w);break;
                case 3:
                    System.out.print("ooo");
            }
        }
        System.out.println();
        for(int i=0;i<4;i++){
            switch (i){
                case 0:
                    System.out.print("o..");
                    f(w);break;
                case 1:
                    System.out.print("o.o");
                    f(w);break;
                case 2:
                    System.out.print(".o.");
                    f(w);break;
                case 3:
                    System.out.print("o.o");
            }
        }
        System.out.println();
        firstLine(w);
    }
    public static void firstLine(int w){
        for(int i=0;i<4;i++){
            switch (i){
                case 0:
                    System.out.print("ooo");
                    f(w);break;
                case 1:
                    System.out.print("ooo");
                    f(w);break;
                case 2:
                    System.out.print("ooo");
                    f(w);break;
                case 3:
                    System.out.print("ooo");
            }
        }
    }
    public static void f(int w){
        for(int i=0;i<w;i++){
            System.out.print(".");
        }
    }
}
